
package com.enjoyiot.module.bms.controller.convert;

import com.enjoyiot.framework.common.pojo.PageResult;
import com.enjoyiot.module.bms.controller.admin.asset.vo.AssetCreateReqVO;
import com.enjoyiot.module.bms.controller.admin.asset.vo.AssetVO;
import com.enjoyiot.module.bms.dal.dataobject.AssetDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface AssetConvert {

    AssetConvert INSTANCE = Mappers.getMapper(AssetConvert.class);

    AssetDO convert(AssetCreateReqVO bean);

    AssetVO convert(AssetDO bean);

    PageResult<AssetVO> convertPage(PageResult<AssetDO> page);

}
